<section class="page">
    <header class="page-header">
        <img src="<?php echo templateUrl() ?>images/1.png" alt="">
    </header>
    <div class="page-body">
        <div class="container">
            <div class="product-list">
                <div class="row">
                    <?php
                    if (!empty($products)) {
                        for ($i = 0; $i < count($products); $i++) {
                            ?>
                            <div class="col-xs-6 col-sm-4">
                                <div class="thumb-item-2">
                                    <div class="cover">
                                        <img src="<?php echo templateUrl() ?>images/<?php echo $products[$i]['icon_image']?>" alt="">
                                    </div>
                                    <div class="caption">
                                        <h4 class="title"><?php echo $products[$i]['name'] ?> </h4>
                                        <div class="price"><span><?php echo $products[$i]['price'] ?> D</span></div>
                                        <a href="<?php echo base_url($breadcrumb[count($breadcrumb)-1]['url'].'/'.$products[$i]['friendly_url']) ?>" class = "view-detail-bg">Chi tiết</a>
                                    </div>
                                </div>
                            </div>
                            <?php
                        }
                    }
                    ?>
                </div>
            </div>
        </div>
    </div>
</section>